home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d20 / pvert.arc / BMG.H < prev    next >
C/C++ Source or Header  |  1992-01-15  |  569b  |  23 lines

  1. /*
  2.  *    bmg.h ->    Boyer-Moore-Gosper search definitions
  3.  *
  4.  *    see bmg.c for documentation
  5.  */
  6.  
  7. #define bmgMAXPAT   133         /*  max pattern length  */
  8.  
  9. typedef struct {
  10.     char    delta[256];         /*  ASCII only deltas   */
  11.     char    pat[bmgMAXPAT + 1];    /*  the pattern        */
  12.     char    ignore;             /*  ignore case flag    */
  13. } bmgARG;
  14.  
  15.  
  16. void   bmgCompile(char *s, bmgARG *pattern, int ignore_case);
  17. char * bmgSearch (char *buffer, size_t buflen, bmgARG *pattern);
  18. char * bmgStrstr (char *find,char *in,int ignore);
  19.  
  20. /*
  21.  *    END of bmg.h
  22.  */
  23.